package com.cheer.vo;

import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @author cheer
 */
@Data
@Accessors(chain = true)
public class OaLearnEntryCompareItemVO {

    private String ratio;

    private Integer rate;

    /**
     * 转换为箭头的方式
     * @return
     */
    public String getTranceRate(){

        if(this.rate == 0){
            return "─";
        }
        if(this.rate >= 1){
            return "↑";
        }
        if(this.rate <= -1){
            return "↓";
        }
        return "";
    }
}
